how to reference function in unity

88

how to reference function in unity -

public GameObject myObject; //make ref. in inspector window

myObject.GetComponent<MyScript>().MyFunction();

Comments

Submit
0 Comments